package exchange

import (
	"global/core"
	"global/model"
)

type SymbolInterface interface {
	Start()
}

func Factory(ctx *core.Context, coins map[string]int, exchange *model.Exchange) SymbolInterface {
	switch exchange.Slug {
	case "bit-z":
		return NewBitZSymbol(ctx, coins, exchange)
	case "binance":
		return NewBinanceSymbol(ctx, coins, exchange)
	case "huobi":
		return NewHuobiSymbol(ctx, coins, exchange)
	case "bitfinex":
		return NewBitfinexSymbol(ctx, coins, exchange)
	}
	return nil
}